// 表格配置文件

// 附件信息表格配置
export const annexTableConfig = {
  columns: [
    {
      prop: "LineNum",
      label: "序号",
      width: "60"
    },
    {
      prop: "FileName",
      label: "文件名称",
      placeholder: "请输入文件名称",
      width: "200",
      canEdit: true,
      headerRequired: true,
      configEdit: {
        label: "文件名称",
        type: "select-arr",
        editSlotName: "FileName",
        editComponent: "el-input",
        rules: { required: true, message: "请选择条款", trigger: "blur" }
      }
    },
    {
      prop: "File1",
      label: "附件一",
      canEdit: true,
      width: "300",
      placeholder: "请上传附件",
      configEdit: {
        label: "附件一",
        editSlotName: "uploadFile1",
        editComponent: "el-upload"
      }
    },
    {
      prop: "File2",
      label: "附件二",
      minWidth: "100",
      canEdit: true,
      placeholder: "请上传附件",
      configEdit: {
        label: "附件二",
        editSlotName: "uploadFile2",
        editComponent: "el-upload"
      }
    },
    {
      prop: "File3",
      label: "附件三",
      minWidth: "100",
      canEdit: true,
      placeholder: "请上传附件",
      configEdit: {
        label: "附件三",
        editSlotName: "uploadFile3",
        editComponent: "el-upload"
      }
    }
  ],
  operator: [
    {
      type: "danger",
      text: "删除",
      fun: null
    }
  ],
  operatorConfig: {
    fixed: "right",
    width: "100"
  }
}

// 质量信息表格配置
export const qualityTableConfig = {
  columns: [
    {
      prop: "LineNum",
      label: "序号",
      width: "60"
    },
    {
      prop: "TermID",
      label: "条款",
      placeholder: "请选择条款",
      width: "200",
      canEdit: true,
      headerRequired: true,
      configEdit: {
        label: "条款",
        type: "select-arr",
        editSlotName: "TermID",
        editComponent: "el-select",
        rules: { required: true, message: "请选择条款", trigger: "change" }
      }
    },
    {
      prop: "TermContent",
      label: "条款内容",
      minWidth: "220"
    }
  ],
  operator: [
    {
      type: "danger",
      text: "删除",
      fun: null
    }
  ],
  operatorConfig: {
    fixed: "right",
    width: "100"
  }
}